import router from '@/router'
import { App } from 'vue'
/**
 * @description ；判断当前路由是否拥有权限
 */
export const hasPermission = (action: string, include = false) => {
  // const currentRoute = router.currentRoute.value
  // action = currentRoute.
  // todo
}
const install = (app: App) => {
  app.config.globalProperties.$hasPermission = hasPermission
}
export default install
